package com.hougong.im.body.notice;

import com.hougong.im.annotation.ProtocolField;
import com.hougong.im.body.BaseBodyCodec;

public class GroupMessageNotice extends BaseBodyCodec<GroupMessageNotice> {
    /**
     * 消息唯一id
     */
    @ProtocolField(sort = 1)
    private long mid;
    /**
     * 用户id
     */
    @ProtocolField(sort = 2)
    private long fromid;

    @ProtocolField(sort = 3)
    private int userNameLen;

    @ProtocolField(sort = 4,lenField = "userNameLen")
    private String userName;

    @ProtocolField(sort = 5)
    private int avatarLen;

    @ProtocolField(sort = 6,lenField = "avatarLen")
    private String avatar;
    /**
     * 群id
     */
    @ProtocolField(sort = 7)
    private long gid;

    /**
     * 文字长度
     */
    @ProtocolField(sort = 8)
    private int msgLen;
    /**
     * 文字内容
     */
    @ProtocolField(sort = 9,lenField = "msgLen")
    private String msg;
    /**
     * 图片消息地址长度
     */
    @ProtocolField(sort = 10)
    private int imageLen;
    /**
     * 图片消息地址
     */
    @ProtocolField(sort = 11,lenField = "imageLen")
    private String image;
    /**
     *  类型  0文本1图片2语音录音3视频录像
     */
    @ProtocolField(sort = 12)
    private int type;
    /**
     * 时间
     */
    @ProtocolField(sort = 13)
    private long timestamp;

    public long getMid() {
        return mid;
    }

    public void setMid(long mid) {
        this.mid = mid;
    }

    public long getFromid() {
        return fromid;
    }

    public void setFromid(long fromid) {
        this.fromid = fromid;
    }

    public long getGid() {
        return gid;
    }

    public void setGid(long gid) {
        this.gid = gid;
    }

    public int getMsgLen() {
        return msgLen;
    }

    public void setMsgLen(int msgLen) {
        this.msgLen = msgLen;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getImageLen() {
        return imageLen;
    }

    public void setImageLen(int imageLen) {
        this.imageLen = imageLen;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public int getUserNameLen() {
        return userNameLen;
    }

    public void setUserNameLen(int userNameLen) {
        this.userNameLen = userNameLen;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getAvatarLen() {
        return avatarLen;
    }

    public void setAvatarLen(int avatarLen) {
        this.avatarLen = avatarLen;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
